<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
<style>
    *{
        padding: 0;
        margin: 0;
    }
    .slide{
        width: 160px;
        height: 220px;
        background-color:rgba(105,101,101, 0.6);
        padding: 10px 0;   /*这个容器的边距，避免里面的内容贴到盒子的边缘*/
        margin: 40px;
        position: relative;
    }
    .slide ul{
        list-style: none;
    }
    .slide ul li{
        width: 100%;
        height: 30px;
        line-height: 30px;
        text-align: left;
        padding-left: 20px;
        box-sizing: border-box;
    }
    .slide ul li a{
        display: inline-block;
        text-decoration: none;
        color: aliceblue;
    }
    .slide ul li:hover{
        background-color: #ff6700;
    }
    .slide-list{
        width: 580px;
        height: 240px;
        background-color: rgb(195, 255, 208);
        position: absolute;
        top: 0;
        left: 160px;
        border: 1px solid #e0e0e0;
        border-left: none; /*左侧连接区域的边框不要*/
        box-shadow: 0 8px 16px rgba(0,0,0,0.18);
        display: none;  /*默认情况下这个框是不出现的*/
    }
.slide ul li:hover >.slide-list{
    display: block;
}
</style>
</head>

<body>
    <!-- 滑动门的结构 -->
     <div class="slide">
        <ul>
            <li>
                <a href="#">手机</a>
                <div class="slide-list">小米 华为 oppo</div>
            </li>
            <li>
                <a href="#">电视</a>
                <div class="slide-list">创维 TCL 康佳</div>
            </li>
        </ul>
     </div>
</body>
</html>


